約 7,257,428 件
https://w.atwiki.jp/freememo/pages/48.html
HINTERNET g_hInet; HINTERNET g_hURL; //===========================================================================// /*! @brief WinInetライブラリ初期処理 @param[in] lpszURL 対象URL @return 成否 */ //===========================================================================// BOOL InitWinInet(LPCTSTR lpszURL) { // WinInetライブラリ開始 g_hInet = InternetOpen( L"", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0); if (g_hInet == NULL) { return FALSE; } // セッションオープン g_hURL = InternetOpenUrl(g_hInet, lpszURL, NULL, 0, 0, 0); if (g_hURL == NULL) { return FALSE; } return TRUE; } //===========================================================================// /*! @brief WinInetライブラリ終了処理 @return 無し */ //===========================================================================// void TerminateWinInet() { // WinInet関連ハンドル開放 if (g_hURL) { InternetCloseHandle(g_hURL); } if (g_hInet) { InternetCloseHandle(g_hInet); } } //===========================================================================// /*! @brief HTTPソース取得 @param[in] lpszURL 対象URL @param[out] lpOutBuffer HTTPソースバッファ @param[in/out] hMem メモリハンドル @return 成否 */ //===========================================================================// BOOL WINAPI NMAPI_GetHttpHeader(LPCTSTR lpszURL, LPTSTR lpOutBuffer, HGLOBAL hMem) { BOOL bRet = FALSE; // WinInetライブラリ初期処理 if (! InitWinInet(lpszURL)) { goto END; } // バッファバイト数取得 DWORD dwSize = 0; if (! HttpQueryInfo(g_hURL, HTTP_QUERY_RAW_HEADERS_CRLF, (LPVOID)NULL, dwSize, NULL)) { if (GetLastError()==ERROR_HTTP_HEADER_NOT_FOUND) { goto END; } } // メモリ再割り当て hMem = GlobalReAlloc(hMem, (SIZE_T)dwSize+1, GMEM_MOVEABLE); if (hMem == NULL) { goto END; } lpOutBuffer = (TCHAR *)GlobalLock(hMem); if (lpOutBuffer == NULL) { goto END; } // HTTPヘッダ情報取得 if (! HttpQueryInfo(g_hURL, HTTP_QUERY_RAW_HEADERS_CRLF, (LPVOID)lpOutBuffer, dwSize, NULL)) { goto END; } bRet = TRUE; END // WinInetライブラリ終了処理 TerminateWinInet(); return bRet; } //===========================================================================// //呼び出し側 //===========================================================================// { HGLOBAL hMem = GlobalAlloc(GHND, sizeof(TCHAR)); CHAR* lpszSource = (CHAR*)GlobalLock(hMem); if (NMAPI_GetHttpSource(strURL, lpszSource, hMem)) { ・・・ ・・・ ・・・ } // メモリ開放 GlobalUnlock(hMem); GlobalFree(hMem); }
https://w.atwiki.jp/cheapugg058/pages/19.html
"The best part is, your privacy comes with youPapaya - This fruit naturally contains high levels of vitamins A and C and minerals like potassiumA Buses, cars, vans, and even the occasional 18 wheeler can be used as a great tailgating vehicle Despite being a fixture in Washington Dtimestamp a" - Terry Bradshaw, Former football player/announcer "I was glad to see Italy winSpirulina Maxima - This special edible blue-green algae is effective for appetite suppression, weight loss and in controlling cholesterol levelsTim McGraw and Faith Hill ? The countrynorth face outlet online singers (and husband and wife) have been connected to the Packers because of their friendship with Brett FavreorgDid you like this article? You can write articles like this and make money from it He was injured in 1990 and missed five games00Beckham Both Feet on the Ground An AutobiographyAmazon Price $3Minnesota at Houston, 7 p At 40, he must have tried so a gazillion different kinds of coffee, and by now has a favourite brand The excess inventories that remained on their shelves are purchased by the truckload by savvy resale owners who sell you the manufacturer software at a very low, cheap software discounts price that you could not find anywhere elseWanta be safe and protected through this whole cleansing of America about to happen! Enough is enough after 9/11, the "Patriot Act" bull and smearing our Constitution with their arrogance, it is a blessing to have Mr The Cowboys efforts to keep themselves in the limelight have paid off That season, he caught 60 passes for a career high 1077 yards with 10 TDs (also career best)ditto173861203540590592 a { color #CB9934;} p Last year, Manning showed that he has no intentions of slowing down, when he threw for 4,400 yards and 31 touchdowns while throwing just 9 picks Hence, you do not feel hungry immediately You should follow a high-calorie-diet for 5 days of the week and follow a low-calorie-diet for rest two days The excess inventories that remained on their shelves are purchased by the truckload by savvy resale owners who sell you the manufacturer software at a very low, cheap software discounts price that you could not find anywhere else Alcatraz, in operation as a maximum security federal penitentiary from 1934 to 1963, continues to fascinate, with Escape from Alcatraz effectively dramatizing conditions inside the notorious prison Though she is the eponymous character, the player controls the main protagonist, Link Some tailgaters never actually enter nfl jerseys cheap the stadium, but instead enjoy the entire game from the parking lotThe best part of this part aside from the community and food is the casual atmosphere of the partytimestamp a Once on the field, Michael himself seems clueless until Tuohy/Bullock shouts down a racist jerk in the stands, in the midst of the memorable play I mentioned at the beginning of this essay The Longest Yard, remade in 2005 starring Adam Sandler and Chris Rock, is both brutal and funny These jerseys are produce of thinner fabrics with less detail so they a lot less expensive It’s a lot of logic and math, but at the end of the day all that goo is abstracted away from the programmer3 The reanimated Blacula is now set loose on modern day Los Angeles, hitting the nightclubs, charming the young women and going about his bloody businessmetadata span Dwayne Wade Dwyane Tyrone Wade, Jrat-name a hover { color #999; text-decoration none; font-size 14px; font-weight normal; } Follow @MagicJohnson Earvin Magic Johnson @MagicJohnson So sad to hear the news about hip-hop mogul Chris Lighty passingtwimgThirty-two-year-old Visanthe Shiancoe is a free agent after playing nine years in the league and is a good fit for a Raiders team with little experience at tight end The 1974 season saw the Steelers, despite a slow start, finish with a 10-3-1 regular season record as they cruised toward their first of six consecutiveJoe Flacco Jersey AFC Central titles The 36 TDs ranks him in a tie for eighth place in a single season The first, and the most important thing while picking up any Zumbawear is to feel comfortable and loosened up Earlier today, he tweeted a pic of his Hamstring MRI, saying that it showed a bunch of “anti-awesomenessUpdate (God is in the details, y’know?)Update 200 custom-made parts make up the device twitterditto212522956352532482 a { color #990000; } div Edgecomb and his fellow guards carry out executions using Old Sparky, the prison s foreboding, oft-used electric chair Although the case was dismissed on sovereign immunity issues for the defendants, which Wanta understood he couldn t overcome, he was smart enough to file the case in order to get official court verification of his status as legal trustortimestamp a {color #999;text-decoration none;} p And remember to wish Bill Cosby a happy birthday while you’re at it Also, you can just connect your PC or Laptop to your big plasma Tv or HD TV and watch big NFL game live stream with your friends and family DirecTV Satellite TV ServiceDepending on your credit rating, when you order a free satellite TV system from DirecTV you may be required to pay a deposit or prepaymentWallace is one of the league s best young wide receivers, and he finished this past season with 72 receptions for nearly 1,200 yardsdittoTweet span Let s familiarize ourselves with some of these terms, so when you are looking at cue sticks you can make an informed decision Some of his favorite jazz musicians were not only performing but were creating new music especially to go on his jazz CD Most tailgaters will tell you that beer is the drink to be had at a tailgating partypng);background-repeat no-repeat;}spanditto166330814274076673 a { color #0084B4;} pWMV HD can be viewed on any computer with Windows XP based system Aldon Smith Jersey There are three of us, my wife, my daughter, and me He was invited to participate in a second dunk contest during the 2009 All-Star Weekend, but was replaced by JAll these venues are located within the South Philadelphia Sports Complex Well, here it is ? Ashlynn Brookemod_15950243" class="module moduleText color0" Your fantasy football team name is perhaps the second most important part of dominating your fantasy football league 12 Volt televisions are a great way to enjoy the game, whether you just want to watch the pre-game show or the entire game They are also preferred by women gymnasts You should try to distinguish between the two Watch today s NFL live Online games PC TV with Digital HD from Your own country According to Joyce Carol Oates, Lovecraft — as with Edgar Allan Poe in the 19th century — has exerted "an incalculable influence on succeeding generations of writers of horror fiction" Massive enivornment; Beautiful graphics; Great ambient music and sound; Totally engrossing gameplay But the game was innovative with the three point competition and slam dunk contest long before it showed up anywhereJulio Jones Jersey else It is also a good idea to check out which sportsbooks offer the best odds on their teaser action The €4 He chose to forgo college and entered the 2004 NBA Draft, and was selected first overall by the Magic
https://w.atwiki.jp/fxext/pages/62.html
Firefox75時点での内容 resource //gre/modules/Bookmarks.jsm jsmを直接importするより、PlacesUtils.bookmarksでアクセスする方が良い? ファイル冒頭の説明文の翻訳 メソッド プロパティ ファイル冒頭の説明文の翻訳 ※ほぼ機械翻訳 * This module provides an asynchronous API for managing bookmarks. このモジュールは、ブックマークを管理するための非同期APIを提供します。 * Bookmarks are organized in a tree structure, and include URLs, folders and * separators. Multiple bookmarks for the same URL are allowed. ブックマークはツリー構造で編成されており、URL、フォルダ、セパレータが含まれています。 同じURLの複数のブックマークが許可されます。 * Note that if you are handling bookmarks operations in the UI, you should * not use this API directly, but rather use PlacesTransactions.jsm, so that * any operation is undo/redo-able. UIでブックマーク操作を処理している場合は、このAPIを直接使用するのではなく、PlacesTransactions.jsm を使用して、操作を元に戻したりやり直したりできるようにする必要があります。 * Each bookmark-item is represented by an object having the following * properties * * - guid (string) * The globally unique identifier of the item. * - parentGuid (string) * The globally unique identifier of the folder containing the item. * This will be an empty string for the Places root folder. * - index (number) * The 0-based position of the item in the parent folder. * - dateAdded (Date) * The time at which the item was added. * - lastModified (Date) * The time at which the item was last modified. * - type (number) * The item s type, either TYPE_BOOKMARK, TYPE_FOLDER or TYPE_SEPARATOR. 各ブックマークアイテムは、次のプロパティを持つオブジェクトによって表されます。 guid (文字列):アイテムのグローバル一意識別子。 parentGuid (文字列):アイテムを含むフォルダーのグローバル一意識別子。Placesルートフォルダは空の文字列になる。 index (数字):親フォルダー内のアイテムの0から始まる位置。 dateAdded (Date):アイテムが追加された時刻。 lastModified (Date):アイテムが最後に変更された時刻。 type (数字):アイテムのタイプ。TYPE_BOOKMARK、TYPE_FOLDER、またはTYPE_SEPARATOR。 * The following properties are only valid for URLs or folders. * * - title (string) * The item s title, if any. Empty titles and null titles are considered * the same. Titles longer than DB_TITLE_LENGTH_MAX will be truncated. 次のプロパティは、URLまたはフォルダに対してのみ有効です。 title (文字列):アイテムのタイトル(ある場合)。空のタイトルとnullタイトルは同じと見なされる。DB_TITLE_LENGTH_MAX より長いタイトルは切り捨てられる。 * The following properties are only valid for URLs * * - url (URL, href or nsIURI) * The item s URL. Note that while input objects can contains either * an URL object, an href string, or an nsIURI, output objects will always * contain an URL object. * An URL cannot be longer than DB_URL_LENGTH_MAX, methods will throw if a * longer value is provided. 次のプロパティは、URLに対してのみ有効です。 url (URL, href or nsIURI): アイテムのURL。入力オブジェクトにはURLオブジェクト、href文字列、またはnsIURIのいずれかを含めることができるが、出力オブジェクトには常にURLオブジェクトが含まれることに注意。URLは DB_URL_LENGTH_MAX より長くすることはできない。長い値を指定すると、メソッドがスローする。 * Each successful operation notifies through the nsINavBookmarksObserver * interface. To listen to such notifications you must register using * nsINavBookmarksService addObserver and removeObserver methods. * Note that bookmark addition or order changes won t notify onItemMoved for * items that have their indexes changed. * Similarly, lastModified changes not done explicitly (like changing another * property) won t fire an onItemChanged notification for the lastModified * property. * @see nsINavBookmarkObserver 成功した各操作は、nsINavBookmarksObserver インターフェースを通じて通知します。 そのような通知を聞くには、nsINavBookmarksService の addObserver および removeObserver メソッドを使用して登録する必要があります。 ブックマークの追加や順序の変更は、インデックスが変更されたアイテムの onItemMoved に通知されないことに注意してください。 同様に、明示的に行われていない lastModified の変更(別のプロパティの変更など)は、lastModified プロパティの onItemChanged 通知をトリガーしません。 @参照:nsINavBookmarkObserver メソッド isVirtualRootItem(guid) 返り値:真偽値 4つの仮想ルートフォルダかどうか getLocalizedTitle(info) 返り値:文字列 4つのユーザーコンテンツルートフォルダのローカライズ名を取得 insert(info) 返り値:promise ブックマークアイテムを既存のブックマークツリーに挿入 insertTree(tree, options) 返り値:promise ブックマークツリーを既存のブックマークツリーに挿入 update(info) 返り値:promise ブックマークアイテムを更新 moveToFolder(guids, parentGuid, index, source) 返り値:promise 複数のブックマークアイテムを特定のフォルダに移動 remove(guidOrInfo, options = {}) 返り値:promise ブックマークアイテムを削除 eraseEverything(options = {}) 返り値:promise すべてのブックマークを削除し、ブックマークストレージを空のツリーにリセットする。 getRecent(numberOfItems) 返り値:promise 最近ブックマークしたアイテムのリストを返す。 実際のブックマークのみが含まれ、フォルダ、セパレーター、およびクエリを除外する。 fetch(guidOrInfo, onResult = null, options = {}) 返り値:promise(resolve値:ブックマークアイテム) ブックマークアイテムの情報を取得する。 fetchTree(guid = "", options = {}) 返り値:promise ブックマークアイテムのオブジェクト表現を、その子孫がある場合はその全てと共に取得する。 async fetchTags() 返り値:promise アルファベット順にソートされたすべての既存のタグを取得する。 reorder(parentGuid, orderedChildrenGuids, options = {}) 返り値:promise GUIDの配列に基づいてフォルダの内容を並べ替える。 search(query) 返り値:promise(resolve値:見つかったブックマークアイテムの配列) ブックマークをURLまたはタイトルで検索する。 プロパティ プロパティ 値 TYPE_BOOKMARK 1 TYPE_FOLDER 2 TYPE_SEPARATOR 3 SYNC_STATUS DEFAULT_INDEX -1 MAX_TAG_LENGTH 100 SOURCES rootGuid "root________" menuGuid "menu________" toolbarGuid "toolbar_____" unfiledGuid "unfiled_____" mobileGuid "mobile______" tagsGuid "tags________" userContentRoots 4つのユーザーコンテンツルートフォルダのGUIDの配列 virtualMenuGuid "menu_______v" virtualToolbarGuid "toolbar____v" virtualUnfiledGuid "unfiled____v" virtualMobileGuid "mobile_____v"
https://w.atwiki.jp/handsrecs/pages/16.html
http //www.studyinghttp.net/status_code
https://w.atwiki.jp/yoshida2/pages/115.html
telnetでブラウズ(HTTP) このページでは、インターネットでホームページなどをブラウジングするときに利用するHTTPプロトコルについて説明しています。 概要 HTTPプロトコルとは、Hypertext Transfer Protocolの略で、インターネットでホームページなどをブラウジングするときに利用しているプロトコルです。 HTTPプロトコルは、TCP/IP上のプロトコルで、通常80番ポートを使ってアクセスします。 詳細な定義は、以下のRFCで定義されています。 RFC-1945 HTTP/1.0 RFC-2068 HTTP/1.1 基本的に、メッセージを要求(リクエスト)し、その応答結果(レスポンス)を表示するだけです。 HTTPのアクセスログ ApacheなどのWebサーバのログを見ると、リクエストとレスポンスが、以下の形式で出力されます。 アクセスログの書式 アクセス元 - - [アクセス時間] メソッド名 URL名 プロトコルバージョン レスポンスコード 例: 10.0.1.20 - - [01/Jul/1999 23 22 46 +0900] GET /usr/joe/index.html HTTP/1.0 200 2060 メソッドの種類には、GETやPOSTなどがあります。 GETメソッドは、HTMLデータや画像データなどを取得する場合に使用します。 GETメソッドで要求すると、ヘッダ情報とHTMLデータが返却されます。 GETメソッドでCGIを呼び出すこともできます。 パラメータを渡す場合は、URLの後に ?name1=データ1 name2=データ2 という形式で指定します。 HEADメソッドは、ファイルサイズや更新日時を調べる場合に利用します。 HEADメソッドを利用すると、ヘッダ情報だけが返却されます。 POSTメソッドは、CGIなどにデータを渡す場合に使用します。 パラメータなどのデータは、環境変数などによって、CGIに渡ります。 以下に、HTTPのバージョンとメソッドの種類を示します。 メソッドの種類 HTTP/1.0 GET, HEAD, PUT, POST, DELETE, LINK, UNLINK HTTP/1.1 OPTIONS, TRACE, PATCH 以下に、レスポンスコードの一覧を示します。 100番台は通信エラー、200番台は正常終了、300番台はリダイレクト、400番台はクライアントエラー、500番台はサーバエラーを表しています。 リダイレクトとは、クライアントの指定したURLに移動した場合などに返却されます。 レスポンスコード コード 内容 コード 内容 100 Continue 101 Switching Protocols 200 OK 201 Created 202 Accepted 203 Non-Authoritative Information 204 No Content 205 Reset Content 206 Partial Content 300 Multiple Choices 301 Moved Permanently 302 Moved Temporarily 303 See Other 304 Not Modified 305 Use Proxy 400 Bad Request 401 Unauthorized 402 Payment Required 403 Forbidden 404 Not Found 405 Method Not Allowed 406 Not Acceptable 407 Proxy Authentication Required 408 Request Time-out 409 Conflict 410 Gone 411 Length Required 412 Precondition Failed 413 Request Entity Too Large 414 Request-URI Too Large 415 Unsupported Media Type 500 Internal Server Error 501 Not Implemented 502 Bad Gateway 503 Service Unavailable 504 Gateway Time-out 505 HTTP Version not supported レスポンスコードは、ログファイルなどに出力されますので、知っていると役に立つと思います。 telnetでブラウジング では、実際にtelnetでブラウジングしてみましょう。 telnetコマンドで、WWWサーバ名と、80番ポートを指定します。 Linux# telnet ash.jp 80 そこで、環境変数をすべて表示するCGI(env.cgi)を起動してみます。 まず、GETコマンドで、取得したいURLと、HTTPのバージョンを指定します。 GET /~joe/prog/cgi/env01.cgi HTTP/1.0 ここで、リターンのみを入力しても表示されますが、以下のオプションも入力してみます。 指定したオプションは、環境変数としてCGIに渡ります。 User-Agent Telnet [ja] (Linux) Host www.ash.jp リターンのみを入力すると、レスポンスと、HTMLが表示されます。 当然、HTMLのソースが表示されるだけですから、頭の中でHTMLを解析し画面イメージを想像する必要があります。 以下に実行結果を示します。 Linux# telnet ash.jp 80 Trying 210.154.87.18... Connected to ash.jp. Escape character is ^] . GET /~joe/prog/cgi/env01.cgi HTTP/1.0 User-Agent Telnet [ja] (Linux) Host ash.jp HTTP/1.1 200 OK DeleGate-Ver 5.8.8 (delay=7) Date Fri, 02 Jul 1999 09 56 24 GMT Server Apache/1.3.3 (Unix) Content-Type text/html Via 1.0 210.154.87.18 80 (DeleGate/5.8.8) Content-Length 954 html body h1 CGIでの環境変数一覧 /h1 hr h3 環境変数の表示 /h3 DOCUMENT_ROOT = /usr/local/share/apache/htm br GATEWAY_INTERFACE = CGI/1.1 br HTTP_FORWARDED = by http //210.154.87.18 80/ (DeleGate/5.8.8) for sv01.lo.ash.or .jp br HTTP_HOST = ash.jp br HTTP_USER_AGENT = Telnet [ja] (Linux) br HTTP_VIA = 1.0 210.154.87.18 80 (DeleGate/5.8.8) br PATH = /usr/local/sbin /usr/local/bin /sbin /usr/sbin /bin /usr/bin br QUERY_STRING = br REMOTE_ADDR = 10.0.1.254 br REMOTE_PORT = 12621 br REQUEST_METHOD = GET br REQUEST_URI = /~joe/prog/cgi/env01.cgi br SCRIPT_FILENAME = /home/joe/public_html/prog/cgi/env01.cgi br SCRIPT_NAME = /~joe/prog/cgi/env01.cgi br SERVER_ADMIN = info@ash.jp br SERVER_NAME = ash.jp br SERVER_PORT = 80 br SERVER_PROTOCOL = HTTP/1.0 br SERVER_SIGNATURE = ADDRESS Apache/1.3.3 Server at ash.jp Port 80 /ADDRESS br SERVER_SOFTWARE = Apache/1.3.3 (Unix) br hr br このCGIのソース: a href=env01.txt env01.cgi /a br /body /html Connection closed by foreign host. 最初の、HTTP/1.1 200 OKは、HTTPプロトコルで、正常に転送したことを表します。 その後にヘッダ情報が転送され、最後にHTMLのソースが転送されます。 環境変数として、以下の値が追加設定されているのが確認できます。 HTTP_HOST = ash.jp HTTP_USER_AGENT = Telnet [ja] (Linux) このように、HTTPプロトコルは、要求(リクエスト)に対して、応答(レスポンス)が返却されるだけのシンプルなプロトコルです。 余談ですが、HTTPプロトコルという呼び方は、Hyper Text Transfer Protocol プロトコルになって、プロトコルが2重になってしまい、おかしいです。 でも、この方がわかりやすいので、私はよく使います。
https://w.atwiki.jp/yorunonaisekai/pages/14.html
概要 禁断のアングラSNS「red video info」は、異常性癖・暴力・スナッフビデオ……などが投稿されている、知る人だけが知る世界。 しかし閲覧数は多く、これらを密かに楽しんでいる人々は少なくないようだ。 その投稿者の中に、「レグルス」と呼ばれている人気の男子ユニットがあった。 彼らがどこから配信をしているかはわからないが、8人が同じ場所にいる。 たまに仲良しオフショットも上げてくる等で癒してくるので油断ならない。 …という設定であれこれ絵を描きたい!エロゲー並みの簡単な設定でR18G絵を描きたい! という企画です。 舞台 舞台は現代日本風で、ネット・スマホも普通にあるような世界 ただし人身売買の話がよく聞かれたりして、現代日本より治安がよろしくない。 red video infoというSNSについて アングラSNS「red video info」は、もともと「video」と名の付く通り、 スナッフビデオや流出画像がいきつく場所としてネット黎明期から存在していた。 近年になって開始されたSNSであるRVIも、そういったものが好きな人の集まりになっている。 よくあるのがソフトSM的な画像であったりするが、 中には拷問、処刑、カニバリズム…など、一般人にはおよそ実現不可能なものもある。 運営が何者なのか、なぜ軍などに咎められず存続できるのか…謎が多い。 また、閲覧数によって収入が得られるシステムがあり、トップ層は相当の報酬を得ていると言われる。 ネットでの隠語として「RVI」「赤画」とも呼ばれている。 「飼育箱」について この世界では、金持ちが「飼育箱」というものでお気に入りの人間・奴隷を囲っておく風習のようなものが残っている。 囲われている奴隷たちは「蝶」とも呼ばれる。 よくあるのが美女を囲っている飼育箱だが、美少年を囲う趣味のものもある。 蝶たちは、様々な理由で、攫われてきたり、自ら志願する等で蝶になっている。 レグルスの8人はおそらく「どこかの飼育箱の蝶」なのだろうということが閲覧者から予想されていて、実際にそうである。 表には出てこないが、飼育箱のオーナーがいる。
https://w.atwiki.jp/hisero/pages/23.html
クッキー付加 head !-- メタ情報として指定する場合 -- meta http-equiv="Set-Cookie" content="クッキー情報" /head !-- Javaで書く場合 -- script language="JavaScript" TYPE="text/javascript" document.cookie = "クッキー情報" /script !-- 適当なbody -- body WebServer01 br a href="./hoge" hoge /a br body 名前 コメント
https://w.atwiki.jp/wicky/pages/212.html
HTTPメッセージ HTTPは単純なテキストベースのプロトコルである。現在広く使用されているHTTPプロトコルはHTTP/1.1である。ただし古いブラウザなどではHTTP/1.0が使用されるが、Apacheを含むたいていのWebサーバではその両方に対応している。 Webサーバとクライアントの間では、複数行からなるHTTPメッセージがやり取りされる。WebクライアントがWebサーバへ送るメッセージを「リクエストメッセージ」、その応答としてWebサーバが返すメッセージを「レスポンスメッセージ」という。なお、HTTPメッセージにおける1行とは行末が「CRLF」(キャリッジリターン・ラインフィード)のテキストデータである。 リクエストメッセージ 次にリクエストメッセージのフォーマットの概略を示す。 先頭行のリクエストラインでは、次のような書式でサーバに送る「メソッド」(コマンド)を指定する。 メソッド URI HTTPバージョン ※「URI」(Universal Resource identifiers)とは、リソースの位置を示すための表記法である。実際にはURLはURIの一形式である。ここでは、WebサーバでDocumentRootとして設定されているディレクトリを起点とする絶対パスと考えてかまわない。 HTMLファイルやイメージファイルの取得には「GET」メソッドが使用される。たとえば、WebサーバのDocumentRootとして設定されているディレクトリから、HTTP/1.1プロトコルを使用し、HTMLファイル「index.html」を取得するリクエストラインは次のようになる。 GET /index.html HTTP/1.1 2行目以降のリクエストヘッダはリクエストに関する付加的な情報である。各行のフォーマットは次のようになる。 フィールド名:値 たとえば「host」フィールドはサーバのホスト名を指定する。なお、「バーチャルホストの設定?」で説明する、バーチャルホストに対応するため、HTTP/1.1以降ではリクエストヘッダに少なくともhostフィールドが必須になっている。次にhostフィールドの例を示す。 host www.peachpress.co.jp リクエストメッセージのヘッダ以降の部分であるメッセージボディが、クライアントからサーバに送る実際のデータである。コンテンツを取得するGETメソッドなどでは不要だが、たとえば、CGIプログラムなどにデータを送るPOSTメソッドでは、メッセージボディにデータを格納する。 主なメソッド 次に、一般的に使用されているHTTP/1.1のメソッドの例を示す。 ■HTTP/1.1の主なメソッド メソッド 説明 GET 指定したリソースを取得 HEAD 指定したリソースのレスポンスヘッダのみを取得 OPTIONS 使用できるメソッドやオプションの一覧を取得 POST サーバにリソースを送信 TRACE サーバの診断に利用 レスポンスメッセージ 次にリクエストメッセージを受け取ったWebサーバが返すレスポンスメッセージのフォーマットを示す。 先頭のステータスラインは要求されたリクエストの結果を示している。 HTTPバージョン ステータスコード 理由フレーズ 「ステータスコード」は結果を示す3桁の数値で、「理由フレーズ」はその簡単な説明である。たとえば要求されたファイルが見つからない場合には、次のようなステータスラインが返される。 ●ステータスコード HTTP/1.1 404 Not Found 次に主なステータスコードと理由フレーズを示す。 ■主なステータスコードと理由フレーズ ステータスコード 理由フレーズ 説明 200 OK リクエストが正しく処理された 400 Bad Request リクエストが不正なものであった 403 Forbidden アクセスが拒否された 404 Not Found ファイルが見つからない 405 Method Not Allowed 指定したメソッドがサポートされていない 415 Unsupporeted Media Type 指定したメディアタイプがサポートされていない 500 Internal Server Error サーバ内部のエラーが発生した 505 HTTP Version Not Supported リクエストしたバージョンはサポートされていない 「レスポンスヘッダ」はメッセージに関する付加情報である。各行の書式は「フィールド:値」となる。次に例を示す。 ●レスポンスヘッダ Date Wed, 08 Nov 2006 05 22 35 GMT ←日付 Server Apache/2.2.3 (Fedora) ←サーバ名 Last-Modified Fri, 29 Sep 2006 14 57 49 GMT ←最終更新日 ETag "1979a1-127-3d29b840" ←コンテンツに割り当てられる固有の値 Accept-Ranges bytes Content-Length 295 ←ファイルのサイズ Conection close Content-Type text/html; charset=UTF-8 ←①ファイルのタイプ ①の「Content-Type」がファイルのMIMIタイプである。HTMLファイルの場合には「text/html」になる。そのあとの「charset」で文字コードを指定することもある。 最後の「メッセージボディ」は実際にクライアントに送信するファイルである。つまり、HTMLファイルが要求された場合にはそのHTMLファイルの中身がメッセージボディになる。 ●メッセージボディ !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http //www.w3.org/TR/html4/loose.dtd" " html head title Sample /title meta http-equiv="Content-type" content="text/html; charset=UTF-8" /head body bgcolor="#FFFFFF" h1 Hello /h1 /body /html
https://w.atwiki.jp/sevenlives/pages/43.html
HTTP/0.9? HTTP/1.0? HTTP/1.1 HTTPS? HTTP/2? マルチパートデータ 【MIMEマルチーパート】? メディアタイプ【Content-type】 basic認証【ベーシック認証】 クッキー【Cookie】 リファラ パイプライン? データレンジ? コンテント・ネゴシエーション? 全二重? SPDY? メッセージ(HTTP) リクエスト?リクエスト・メッセージ?リクエスト・ライン? リクエスト・ヘッダ? リクエスト・ボディ? メッセージ・ボディ レスポンス?レスポンス・メッセージ?ステータス・ライン? レスポンス・ヘッダ? レスポンス・ボディ? ステータス・コード?ステータス・コード(200)? ステータス・コード(301) ステータス・コード(302) ステータス・コード(404)? ステータス・コード(500)?
https://w.atwiki.jp/dmtf/pages/14.html
1Scope The Common Information Model (CIM) (DSP0004) is an object-oriented information model defined by the Distributed Management Task Force (DMTF) that provides a conceptual framework for describing management data. The Common Information Model (CIM) (DSP0004) はDistributed Management Task Force (DMTF) によって定義されたデータ管理のためのオブジェクト指向データモデルです。 The Hypertext Transfer Protocol (HTTP) (RFC 1945, RFC 2068, RFC 2616) is an application-level protocol for distributed, collaborative, hypermedia information systems. This generic stateless protocol can be used for many tasks through extension of its request methods, error codes, and headers. The Hypertext Transfer Protocol (HTTP) (RFC 1945, RFC 2068, RFC 2616) は、ハイパーメディア情報システムを記述したり、コラボレートするためのアプリケーションレベルのプロトコル(規約)です。 この総括的なステートレスプロトコルはリクエストメソッド、エラーコードとヘッダをつかって多くのタスクに使用することが可能です。 The Extensible Markup Language (XML) is a simplified subset of SGML that offers powerful and extensible data modeling capabilities. An XML document is a collection of data represented in XML. An XML schema is a grammar that describes the structure of an XML document. The Extensible Markup Language (XML) Iはパワフルで拡張的なデータモデリングが可能なSGMLの簡素なサブセットです。XMLドキュメントはXMLで表現されたデータの集まりです。XMLスキーマはXMLドキュメントの構造を記述する文法です。 This document defines a mapping of CIM messages onto HTTP that allows implementations of CIM to interoperate in an open, standardized manner. It is based on the CIM XML DTD (DSP0201 and DSP0203) that defines the XML schema for CIM objects and messages. このドキュメントはHTTP上でやり取りされるのCIM実装で許容されたCIMメッセージと オープンで標準化されたマナーとしての相互運用(の規則)へのマッピングを定義します。